Author: Apollon
////////////////
////////////
This was a learning mod. My first gun. Most of the code you see has been taken from somewhere else and altered. So first, like when writing a paper, I need to cite my sources.


That aside, I think this may be the first gun I've seen that incorporates so many of these advanced techniques into one place, and I am very proud of the result. 

Notice also, that the gun sprite (second frame) has altered colors to enhance the firing effects and simulate light from the flash reflecting off the gun. It's a good effect, I'm surprised more people don't do it.(Best seen in full auto, so enable "HK" in the index and enjoy!)

////////////
//////
Credit goes to the creator of Bear Federation for origional inspiration and the sound file for the gun, and for the ModuleIcon I based this one off of.
//////
Credit goes to Whitty for use of his Heavy sniper code that taught me about emitters. (granted I removed the explosive rounds) Very Helpful. It was also the muzzle effects from this mod that I altered into the ones you see here 
//////
Credit goes to CaveCricket for his BurstSMG that totally pointed me in the right direction in approaching burst fire. 
//////
Major Credit goes to Gotcha! of Unitec for his original HK 21 gun sprite and also his amazing lua that allowed me to merge my two guns "CrazyHorse"(originally full auto) and "CrazyHorse Burst" together into one.
//////

Without the contributions of these amazing modders to the community I would have had nothing to go on. Thank you

Additional thanks to those on the forums that helped answer my questions and find the right files. (You know who you are)

/////////////////
///////////
Still to do.

Need to make the gun recoil three times. (It only does once currently, even though there are 3 flashes and 3 bullets.)

Need to figure out how to emit 3 shells. (might be the same fix as above.

Need to make it so switching to burst and back doesn't reload clips.
 Also need to make it so firing in one mode takes bullets from the other as well. (Firing a burst takes the normal mode's count down 3, and every third bullet fired in single mode takes one count off the burst mode's count)

Need to code it so it doesn't change ALL the CrazyHorse guns' firerate at the same time. Currently pressing Z changes ALL guns of the same type on the map to the other fire mode. (Trouble if you have more than one soldier with the gun)

Need to trim the code so it's not a freaking thousand lines long, and/or spread across 5 lua scripts


Feedback is both encouraged and desired